{% extends "base.html" %}
{% block style %}
    <link href="/static/css/main.css" rel="stylesheet">
{% endblock %}
{% block content %}
  <div class="con_content">
    <div class="about_box">
      <h2 class="nh1"><span>您现在的位置是：<a href="/" target="_blank">网站首页</a>>><a href="#" target="_blank">个人日记</a></span><b>个人日记</b></h2>
      <div class="dtxw box">
        {% for article in page %}
            <li>
          <div class="dttext f_l">
            <ul>
              <h2><a href="/article/{{ article.id }}/">{{ article.title }}</a></h2>
              <p>{{ article.desctiption|safe }}</p>
              <span>{{ article.time }}</span>
            </ul>
          </div>
          <div class="xwpic f_r"><a href="/"><img src="/static/{{ article.picture }}"></a></div>
        </li>
        {% endfor %}
      </div>
      <div class="pagelist">
          页次：{{ page.number }}/{{ p.num_pages }}
          每页6 总数{{ p.count }}
          <a href="/lists/{{ id }}/?page=1">首页</a>
          {% for i in p.page_range %}
            <a href="/lists/{{ id }}/?page={{ i }}">{{ i }}</a>
          {% endfor %}
          <a href="/lists/{{ id }}/?page={{ p.num_pages }}">尾页</a></div>
    </div>
  </div>
{% endblock %}